﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Manage.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="web.Manage.ProductClass._default" %>

<%@ Register Assembly="PRO.Controls" Namespace="PRO.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_PageInfo" runat="server">
    产品分类管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Menus" runat="server">
    <li><a href="edit.aspx">添加分类</a></li>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">
    <form runat="server">
    <table class="tab" cellpadding="0" cellspacing="0" style="width:100%;">
        <tr>
            <th style="text-align:left;">栏目名称</th>
            <th style="width:70px;">排序</th>
            <th style="width:280px;">操作</th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
           <ItemTemplate>
               <tr>
                   <td style="text-align:left;"><%#Eval("ClassName") %></td>
                   <td>
                       <cc1:SortControl ID="SortControl1" ItemID='<%#Eval("id") %>' TableName="Pro_Class" KeyField="id" SortStyle="Input" runat="server" SortField="sort" Sort='<%#Eval("sort") %>' OnSortCallBack="SortControl1_SortCallBack" />
                   </td>
                   <td>
                       <a href="edit.aspx?id=<%#Eval("id") %>">编辑</a>
                       <a href="edit.aspx?cid=<%#Eval("id") %>">添加子分类</a>
                       <a href="/Manage/product/default.aspx?cid=<%#Eval("id") %>">查看产品</a>
                       <a href="/Manage/product/edit.aspx?cid=<%#Eval("id") %>">添加产品</a>
                       <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Eval("id") %>' OnClientClick="javascript:return confirm('您确定删除吗？');" runat="server">删除</asp:LinkButton>

                   </td>
               </tr>
           </ItemTemplate>
        </asp:Repeater>
    </table>
        </form>
</asp:Content>
